package com.ete.app.constant

import android.os.Environment
import com.blankj.utilcode.util.Utils
import java.io.File

/**
 * @author:LiXian
 * <p>
 * Desc:常量
 * Version:1.0
 * date 2024/1/8 10:56
 */
object EteConstant {

    const val ROUTER_WELCOME = "/ete/welcome"
    const val ROUTER_HOME = "/ete/home"

    private val ROOT = Environment.getExternalStorageDirectory().absolutePath
    val DIR = ROOT + File.separator + "EteApp"
//    val DIR = ROOT + File.separator + "FastFace"

    val DB = DIR + File.separator + "db" + File.separator
    val LOG = DIR + File.separator + "log" + File.separator
    val CRASH = DIR + File.separator + "crash"
    val IMG = DIR + File.separator + "img"
    val BACKUP = DIR + File.separator + "BACKUP"
    val EXPORT = DIR + File.separator + "EXPORT"
    val FACE = DIR + File.separator + "FACE"
    val FAILED = ROOT + File.separator + "FAILED"
    val HOST = ROOT + File.separator + "host"
    val DOWNLOAD = ROOT + File.separator + "Download"
    val CASH_LOG = Utils.getApp().filesDir.absolutePath + File.separator + "log"
    val CASH_TXT = Utils.getApp().filesDir.absolutePath + File.separator + "txt"
    val CASH_SCORE = Utils.getApp().filesDir.absolutePath + File.separator + "score"
    //PathUtils.getExternalAppCachePath() + File.separator + "Log"

    @JvmStatic
    fun getDirs(): List<String> {
        return listOf(DB, LOG, CASH_TXT, CRASH, IMG, BACKUP, EXPORT, FACE, FAILED, HOST, DOWNLOAD,
                CASH_LOG, CASH_SCORE)
    }
}